﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Reflection;
using PSE.Framework.ProviderLoader.Configuration;
using PSE.AuditLogging.Common.Configuration;

namespace PSE.AuditLogging.StorageService.Configuration
{
    public class StorageConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("id", IsRequired = true)]
        public string Id
        {
            get
            {
                return (string)this["id"];
            }
            set
            {
                this["id"] = value;
            }
        }

        [ConfigurationProperty("logTypes", IsRequired = true)]
        public LogTypeConfigurationElementCollection LogTypes
        {
            get
            {
                return (LogTypeConfigurationElementCollection)this["logTypes"];
            }
            set
            {
                this["logTypes"] = value;
            }
        }

        [ConfigurationProperty("repositoryProvider", IsRequired = true)]
        public ProviderConfigurationElement RepositoryProvider
        {
            get
            {
                return (ProviderConfigurationElement)this["repositoryProvider"];
            }
            set
            {
                this["repositoryProvider"] = value;
            }
        }
    }
}
